<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<!-- v-model.number=""  表示双向绑定的数据是一个整数 -->
			<input type="text" v-model.number="number" /><br />
			<input type="button" v-on:click="fun1()" value="加10" />
			
		</div>
		
		<script src="../js/vuejs-2.5.16.js" type="text/javascript" charset="utf-8"></script>
		
		<script type="text/javascript">
			const vue  = new Vue({
				el: "#app",
				data: {
					number: ""
				},
				methods:{
					fun1:function(){
						this.number = this.number+10;
					}
				}
			})
		</script>
		
		
	</body>
</html>
